package com.ruoyi.ufox.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备开关日志对象 bis_device_switch_log
 * 
 * @author ufoxs
 * @date 2022-08-17
 */
public class BisDeviceSwitchLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 日志ID */
    private Long logId;

    /** 设备ID */
    @Excel(name = "设备ID")
    private Long deviceId;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date workStartTime;

    /** 停止时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "停止时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date workStopTime;

    /** 持续时长(分钟) */
    @Excel(name = "持续时长(分钟)")
    private Long minutes;

    /** 组件 */
    @Excel(name = "组件")
    private Integer switchType;

    public void setLogId(Long logId) 
    {
        this.logId = logId;
    }

    public Long getLogId() 
    {
        return logId;
    }
    public void setDeviceId(Long deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() 
    {
        return deviceId;
    }
    public void setWorkStartTime(Date workStartTime) 
    {
        this.workStartTime = workStartTime;
    }

    public Date getWorkStartTime() 
    {
        return workStartTime;
    }
    public void setWorkStopTime(Date workStopTime) 
    {
        this.workStopTime = workStopTime;
    }

    public Date getWorkStopTime() 
    {
        return workStopTime;
    }
    public void setMinutes(Long minutes) 
    {
        this.minutes = minutes;
    }

    public Long getMinutes() 
    {
        return minutes;
    }
    public void setSwitchType(Integer switchType) 
    {
        this.switchType = switchType;
    }

    public Integer getSwitchType() 
    {
        return switchType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("logId", getLogId())
            .append("deviceId", getDeviceId())
            .append("workStartTime", getWorkStartTime())
            .append("workStopTime", getWorkStopTime())
            .append("minutes", getMinutes())
            .append("switchType", getSwitchType())
            .toString();
    }
}
